from page.base_page import BasePage
from selenium.webdriver.common.by import By

"""客户关怀"""
class CustomCarePage(BasePage):
    url = '/crm5/index.php?m=customer&a=cares'

    """定位器"""
    # 点击查看
    contact_care_look_locator = (By.CSS_SELECTOR,
                                 '#form1 > table > tbody > tr:nth-child(1) > td:nth-child(7) > a:nth-child(1)')

    def click_look(self):
        """点击查看"""
        self.driver.find_element(*self.contact_care_look_locator).click()
